package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Travel;
import cn.wolfcode.luowowo.query.SearchQueryObject;
import cn.wolfcode.luowowo.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;


/**
 * 游记服务接口
 */
public interface ITravelService {
    String insert(Travel travel, String token);
    void update(Travel travel);
    void delete(String id);
    Travel select(String id);
    Page<Travel> query(TravelQuery qo);

    void changeState(String id, int state);

    String getContentById(String id);

    List<Travel> listAll();

    Page<Travel> queryOrderByViewnum(TravelQuery qo);

    List<Travel> getViewnumTop3(String destId);

    List<Travel> listByKeyword(SearchQueryObject qo);

    Page<Travel> queryByKeyword(SearchQueryObject qo);

    void updateVO(Travel t);
}
